<template>
    <div class="content">
        <div>
            <van-button class="btn_class" type="default" v-text="btn_text" @click="go"></van-button>
        </div>
        <div class="msg">
            {{msg}}
        </div>
    </div>
</template>

<script>
export default {
    props:['btn_text','path','msg'],
    methods:{
        go(){
            this.$router.push(this.path)
        }
    }
}
</script>

<style scoped>
.btn_class{
    background-color: #2d8cf0;
    width: 80vw;
    border-radius: 40vh;
    color: white;
}
.content{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}
.msg{
    color: #c3c3c3;
    font-size: 13px;
    margin: 10px auto 10px 10vw;
}
</style>
